package com.ruoyi.xiche.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.xiche.domain.Order;
import com.ruoyi.xiche.domain.OrderDetailDTO;
import com.ruoyi.xiche.domain.ServiceReview;
import com.ruoyi.xiche.service.OrderService;
import com.ruoyi.xiche.mapper.OrderMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author wangruoyang
* @description 针对表【order(订单表)】的数据库操作Service实现
* @createDate 2025-03-17 16:56:26
*/
@Service
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order>
        implements OrderService{

    @Autowired
    private OrderMapper orderMapper;

    @Override
    public List<OrderDetailDTO> getOrderDetails() {
        return orderMapper.getOrderDetails();
    }

    @Override
    public List<OrderDetailDTO> getOrderDetailsByStoreId(int storeId) {
        return orderMapper.getOrderDetailsByStoreId(storeId);
    }
}





